package datasv.framework_datasv;

import data.datafactory.DatabaseOperator;

public class GetCondition {
	public static void main(String[] args) {
		System.out.println(new GetCondition().canChooseCrossMajor());
	}

	public boolean canChooseCurriculum() {
		return getResult("1");
	}

	public boolean canChooseCrossMajor() {
		return getResult("2");
	}

	public boolean canChoosePublic() {
		return getResult("3");
	}

	private boolean getResult(String i) {
		DatabaseOperator op = new DatabaseOperator("= =");
		if (op.getOneInform(i, "condition_list", "switcher").equals("0")) {
			return false;
		} else {
			return true;
		}
	}
}
